package com.yanxu.threadpool;

/**
 * @author 折戟沉沙铁未销
 * @version V1.0
 * @date 2025/3/2-2025
 * @Description: 每一个任务创建一个线程
 */
public class EveryTaskOneThread {
    public static void main(String[] args) {
        Thread thread = new Thread(new Task());
        thread.start();
    }

    static class Task implements Runnable{
        @Override
        public void run() {
            System.out.println("执行了任务!!!");
        }
    }
}